import { httpGet, handleResult } from "./http";

//列表
export async function list() {
  const url = "/role/list";
  return await httpGet(url).then(res => res.data.data);
}
//新增
export async function save(params) {
  params.teacherId = 1;
  const url = "/role/save";
  return await httpGet(url, params).then(handleResult);
}
//删除
export async function delete1(id) {
  const url = "/role/delete";
  return await httpGet(url, { id }).then(handleResult);
}
